<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

	<table width="100%">
		<tbody>
			<tr>
				<td height="40" class="sectionheading bottom-border">
					Class Editor
				</td>
			</tr>
			<tr>
				<td>
					<s:actionerror cssClass="Note-red" theme="simple" />
					<s:actionmessage cssClass="verdana11greynormal" theme="simple" />
				</td>
			</tr>
			<tr>
				<td>
					<table width="100%">
						<tbody>
							<tr>
								<td>
									<table>
										<tr>
											<s:form action="showThemeClass" theme="simple" method="post" name="showThemeClassForm">
												<td>
													<s:select list="themeManagerList" listKey="floderName" listValue="themeName" name="themeName" value="themeName" theme="simple" onchange="showThemeClassForm.submit();" />
												</td>
											</s:form>
											<s:form action="showTemplateClass" theme="simple" method="post" name="form">
												<s:hidden name="themeName" value="%{themeName}" />
												<td>
													<s:select list="fileName" name="selectFileName" theme="simple" cssClass="textfield" value="%{selectFileName}" onchange="this.form.submit();" />
												</td>
											</s:form>
											<s:form action="saveClassFile" theme="simple" method="post" id="saveClassForm">
											<s:hidden name="themeName" value="%{themeName}" />
											<s:hidden name="selectFileName" value="%{selectFileName}" />
											<td>
												<s:submit theme="simple" type="image"
													src="../Admin-Images/save-class-btn.gif" align="left"
													value="Save Class" />
											</td>
											<td>
												<img style="cursor: pointer;"
													onclick="document.getElementById('saveClassForm').reset();"
													src="../Admin-Images/reset-button.gif" alt="Reset" title="Reset">
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td>
									<table>
										<tbody>
											<tr>
												<td align="left" valign="top" width="100%">
													<s:textarea id="Class" name="fileContent" value="%{fileContent}" wrap="off" rows="49"
														cols="94" cssClass="Textfiled-border"></s:textarea>
												</td>
											</tr>
										</tbody>
									</table>
								</td>
							</tr>
							</s:form>
						</tbody>
					</table>
				</td>
			</tr>
		</tbody>
	</table>